package com.example.demo.service;

import com.example.demo.pojo.Lifebook;
import com.example.demo.pojo.Module;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface LifebookService {
    //查询生死簿
    public PageInfo queryLifeBook(Integer page, Integer limit, String uuid);
    public Integer queryLifeBook01();

    //搜索生死簿
    public PageInfo queryLifeBook02(Integer page, Integer limit, Lifebook lifebook);

    //添加生死簿
    void addLifeBook(Lifebook lifebook);


    void deleteLifeBook(String id);
    void updateLifeBook(Lifebook lifebook);

    void updateLifeBookphoto(String  photo, String id);
    //图片导出返回图片url
    Object lifebookExport(String inner);

    // 查询死后待勾魂的数量
    int queryLifeBookAfterlife01();

    // 查询今天入地府的数量
    int queryLifeBookAfterlife02();

    void xiugai();


    void addmerit(String lifebook);

    int delchange(int i);

    int lunhunchange(int i);

    int diyuchange(int i);

    List<Module> getuserlevel();

}
